package lanqiao;

public class demo {
	public static void main(String[] args) {
		int[][] pas = new int[8][8];
		

		for (int i = 0; i < pas.length; i++) {
			pas[i][0] = 1;
			pas[i][i] = 1;
		
			for (int j = 1; j < i; j++) {
				pas[i][j]=pas[i-1][j-1]+pas[i-1][j];
			}
		}
		for (int i = 0; i < pas.length; i++) {
            for (int j = 0; j <= i; j++) {
				System.out.print(String.format("%-5d", pas[i][j]));
				
			}
            System.out.println(" ");
		}
	}

}
